import type { RouteRecordRaw } from 'vue-router';

// import { setToken, autoLogin, logout } from '@/api/user';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/personal',
    component: () => import('@/views/template/index.vue'),
    children: [],
  },
  {
    path: '/personal',
    component: () => import('@/views/personal/index.vue'),
  },
  {
    path: '/edit/:id', // 动态路径参数
    name: 'edit',
    component: () => import('@/views/home/index.vue'),
  },
];

export default routes;
